package com.diandian.backend.product.clients;

import com.diandian.backend.product.clients.dto.elemeRetail.ElemeRetailGetSkuStockReqDTO;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("eleme-retail-exchange")
//@FeignClient(value = "business-diandian-sms", url = "http://localhost:8083", path = "")
public interface DianDianElemeRetailExchangeClient {

    /**
     * 查询商品库存数据
     */
    @PostMapping("/business/sku/stock/manage/get")
    BaseResult getSkuStock(@RequestHeader(value = "source") String source,
                           @RequestHeader(value = "secret") String secret,
                           @RequestBody ElemeRetailGetSkuStockReqDTO data);

}
